<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addDept.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <script type="text/javascript" src="./js/validator.js"></script>
  <body>
   	 <form action="my_dept_doAdd_success_deptMain_error_addDeptError.action" method="post" onSubmit="return Validator.Validate(this,3)">  
        <table width="500" align="center">  
            <caption>ADD DEPT INFORMATION</caption>  
                 <tr height="26px">  
                <td width="150px" align="right">DeptID</td>  
                <td width="350px">  
                    <input type="text"  name="dept.deptid" value="${dept.deptid}"/>  
                </td>  
            </tr>  
            
              <tr height="26px">  
                <td width="150px" align="right">DeptName</td>  
                <td width="350px">  
                
                    <input type="text"  name="dept.deptname" dataType="Require" msg="输入不能为空" value="${dept.deptname}"/>  
                </td>  
            </tr> 
            
            <tr height="26px">  
                <td colspan="2"  align="center" width="500">  
                    <input type="submit" value="Save"/>  
                    <input type="button" value="Back" onclick="window.history.back(-1)"/>  
                </td>  
            </tr>  
            </table>
            </form>
   
   
   
   
  </body>
</html>
